<!--slot插槽使用-->
<template>
    <div>

        <child :title="`我是父组件的数据title 传给prop`">

            <template v-slot:solt_test_name1="slotProps">
                <p>姓名:
                    {{slotProps.user.firstName}} {{slotProps.user.lastName}}
                </p>
            </template>
        </child>
    </div>
</template>
<script>
    import child from "@/views/vue_base_test/slot_test/child";

    export default {
        components: {
            child
        },
        created() {
        },
        data() {
            return {
                doc: {
                    title: '123'
                }
            }
        }
    }
</script>